package com.ruanjian.api.service.impl;

import com.ruanjian.api.bean.ExperimentStage;
import com.ruanjian.api.mapper.ExperimentStageMapper;
import com.ruanjian.api.service.IExperimentStageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2022-11-23 11:21
 */
@Service
public class ExperimentStageServiceImpl implements IExperimentStageService {

    @Autowired
    ExperimentStageMapper stageMapper;

    @Override
    public int insertSelective(ExperimentStage record) {
        return stageMapper.insertSelective(record);
    }

    @Override
    public List<ExperimentStage> listExperimentStageByUserId(Long userId) {
        return stageMapper.listExperimentStageByUserId(userId);
    }

    @Override
    public int updateSelective(ExperimentStage stage) {
        return stageMapper.updateSelective(stage);
    }
}
